<!--
  Generated template for the SerspinDetailPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>入库详情</ion-title>
  </ion-navbar>

</ion-header>


<ion-content>
  <ion-list>
    <!--
          <h2>业务员：{{spin.sp_in__house_user}}</h2>
          <h3>入库类别：{{spin.sp_in__store_type == 1?"成品入库":"其他入库"}}</h3>
          <p>仓库：{{spin.sp_in__house_name}}</p>
          <p>单号：{{spin.sp_in__in_code}}</p>
          <p>入库日期: {{spin.sp_in__in_date}}</p>
          -->

    <ion-item>
      <ion-label>业务员</ion-label>
      <ion-label>{{spin.sp_in__house_user}}</ion-label>
    </ion-item>
    <ion-item>
      <ion-label>入库类别</ion-label>
      <ion-label>{{spin.sp_in__store_type == 1?"成品入库":"其他入库"}}</ion-label>
    </ion-item>
    <ion-item>
      <ion-label>仓库</ion-label>
      <ion-label>{{spin.sp_in__house_name}}</ion-label>
    </ion-item>
    <ion-item>
      <ion-label>单号</ion-label>
      <ion-label>{{spin.sp_in__in_code}}</ion-label>
    </ion-item>
    <ion-item>
      <ion-label>入库日期</ion-label>
      <ion-label>{{spin.sp_in__in_date}}</ion-label>
    </ion-item>
  </ion-list>
  
  <ion-list id="detail">
    <ion-item>
      <ion-label fixed>入库明细</ion-label>
      <ion-input type="hidden"></ion-input>
    </ion-item>
    <ion-list>
      <ion-item-sliding *ngFor="let item of details">
        <ion-item>
          <div class="detail-item">
            <p class="detail-title">名称：{{item.sp_in_det__sp_name}}</p>
            <div class="detail-content">
              <p>编码：{{item.sp_in_det__sp_code}}</p>
              <span>仓库：{{item.sp_in_det__stock_name}}</span>
              <span>数量：{{item.sp_in_det__in_num |number:0}}</span>
              <span>单价：{{item.sp_in_det__tax_price | currency:"¥"}}</span>
            </div>
          </div>
          <ion-badge item-end>{{item.sp_in_det__tax_money| currency:"¥"}}</ion-badge>
        </ion-item>
      </ion-item-sliding>
    </ion-list>
  </ion-list>
</ion-content>
